import java.util.HashSet;
import java.util.Set;

//test

public class Concept {
	private String name;
	private Set<Service> outputServices;
	
	public Concept(String name) throws Exception {
		this.name = name;
		outputServices = new HashSet<Service> ();
	}

	
	public String getName() {
		return name;
	}
	public Set<Service> getOutputServices() {
		return outputServices;
	}
	
	public void setOutputServices(Service service) {
		outputServices.add(service);
	}
	

    @Override
    public boolean equals(Object obj) {
        if (obj == this) {
            return true;
        }
        if (obj == null || obj.getClass() != this.getClass()) {
            return false;
        }

        Concept other = (Concept) obj;
        return name == other.name;
    }
   
    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + name.hashCode();
        return result;
    }


	
}
